//package com.xhdd.conf;
//
//
//import org.apache.kafka.clients.admin.AdminClient;
//import org.springframework.boot.autoconfigure.kafka.KafkaProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.stereotype.Component;
//
//@Component
//public class KafkaConf {
//
//    @Bean
//    public AdminClient adminClient(KafkaProperties kafkaProperties) {
//        return AdminClient.create(kafkaProperties.buildAdminProperties());
//    }
//
//}